<%@ page language="java" pageEncoding="UTF-8"%>
<%@include   file="../header.jsp" %>

  <div class="home_div" style="background-color:#FAFAFA;">
	<div class="home_divtitle retext12">
		<div class="home_divtitle01"> </div>
		德瑞姆家园</div>
	<div class="home_divt">
		<div class="home_divtml">
			<div class="home_divtmlt">
				<div class="home_divtmlt01"> <br/>
					<div id="demo1" class="slideBox">
						<ul class="items">
							<li><a href="#" title="德瑞姆家园一"><img src="${imgpath}/images/home_images/img/1.jpg"></a></li>
							<li><a href="#" title="德瑞姆家园二"><img src="${imgpath}/images/home_images/img/2.jpg"></a></li>
							<li><a href="#" title="德瑞姆家园三"><img src="${imgpath}/images/home_images/img/3.jpg"></a></li>
							<li><a href="#" title="德瑞姆家园四"><img src="${imgpath}/images/home_images/img/4.jpg"></a></li>
							<li><a href="#" title="德瑞姆家园五"><img src="${imgpath}/images/home_images/img/5.jpg"></a></li>
						</ul>
					</div>
				</div>
				<!--精华博文-->
				<div class="home_divtmlt02" style="margin-left:3px;">
					<div class="home_divtitle">
						<div class="home_textdiv01 home_divtext"> 精华博文</div>
						<a href="<%=request.getContextPath() %>/home/bw?operType=3">
						<div class="home_textdiv02">更多</div>
						</a> </div>
					<div class="home_divtmlt0201">
						<div class="home_divtmlt0201l">
							<ul>
							<c:if test="${p1!=null}">					
								<c:forEach var="bw" items="${p1.data}" varStatus="status">					
								<li> <span>${bw.authorName}</span> <a>${bw.title }</a> </li>								
							</c:forEach>
							</c:if>	
								
							</ul>
						</div>
					</div>
				</div>
				<!--end精华博文--> 
			</div>
			<!--讲师空间-->
			<div class="home_divtmlml" >
				<div class="home_divtitle">
					<div class=" home_textdiv01 home_divtext">讲师空间</div>
					 <a href="<%=request.getContextPath() %>/home/hy?operType=2">
					<div class="home_textdiv02">更多</div>
					</a> </div>
				<div class="home_divtmlml01">
					<div class="home_divtmlmb">
					
					<c:if test="${p2!=null}">
						<c:forEach var="js" items="${p2.data}" varStatus="status">
						
						<div class="home_divtmlmbt">
							<div class="home_divtmlmb01"> <a href="#"> <img weight="50" height="70" src="${drmFilePath}${js.userImg}?w=50&h=70"/></a> </div>
							<div class="home_divtmlmb02"> <a href="#">
								<p class="home_text03">${js.userName }</p>
								</a>
								<p class="home_te03">${js.sing}</p>
								<br/>
								<p> <span class="home_te01">浏览:${js.browser}</span> <span class="home_te02">关注:${js.gz}</span></p>
								<p> <span class="home_te01">文章:0</span> <span class="home_te02">动态:${js.dt }</span></p>
							</div>
							<div class="home_divtmlmb03" style="left:15px;">
								<ul class="home_text02">
									<a href="#">
									<li></li>
									</a> <a href="#">
									<li></li>
									</a> <a href="#">
									<li></li>
									</a>
								</ul>
							</div>
						</div>
						
						</c:forEach>
						</c:if>
					</div>

				</div>
			</div>
			<!--end讲师空间-->
			<div class="home_divtmlmr"> 
				<!--群组话题-->
				<div class="home_divtmlt02">
					<div class="home_divtitle"> <a href="drm_home_qz.htm">
						<div class=" home_textdiv01 home_divtext">群组话题</div>
						</a> <a href="drm_home_qz.htm">
						<div class="home_textdiv02">更多</div>
						</a> </div>
					<div class="home_divtmlt0201">
						<div class="home_divtmlt0201l">
							<ul  style="font-size:12px;line-height:28px;">
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
								<li> <span>作者</span> <a>【社会心理学群组】甲午战争的心理学研究:创伤影响</a> </li>
							</ul>
						</div>
					</div>
				</div>
				<!--end群组话题--> 
				<!--群组活动-->
				<div class="home_divtmlt02">
					<div class="home_divtitle"> <a href="drm_home_qz.htm">
						<div class=" home_textdiv01 home_divtext">群组活动</div>
						</a> <a href="drm_home_qz.htm">
						<div class="home_textdiv02">更多</div>
						</a> </div>
					<div class="home_divtmlt0202" style="padding-left:10px;">
						<div class="home_te07"> <a href="#">
							<li>2013年人格心理学研讨会</li>
							</a> </div>
						<div class="home_divtmlmb01"> <a href="#"> <img src="${imgpath}/images\home_images\teacher01.jpg"/></a> </div>
						<div class="home_divtmlmb04 home_te03">
							<p >所属群组：人格心理学群组</p>
							<p>发起人：马洪</p>
							<p> <span class="home_te04">时间：</span> <span class="home_te05">2013/04/10,8:00<br/>
								至2013/04/10,12:00</span></p>
							<br/>
							<p class="home_te06">参与人数：26</p>
						</div>
					</div>
					<div class="home_divtmlt0203" style="padding-left:10px;">
						<div class="home_te07"> <a href="#">
							<li>2013年人格心理学研讨会</li>
							</a> </div>
						<div class="home_divtmlmb01"> <a href="#"><img src="${imgpath}/images\home_images\teacher01.jpg"/></a> </div>
						<div class="home_divtmlmb04 home_te03">
							<p ><span>所属群组：</span>人格心理学群组</p>
							<p><span>发起人：</span>马洪</p>
							<p> <span class="home_te04">时间：</span> <span class="home_te05">2013/04/10,8:00<br/>
								至2013/04/10,12:00</span></p>
							<br/>
							<p class="home_te06"><span>参与人数：</span>26</p>
						</div>
					</div>
				</div>
				<!--end群组活动--> 
			</div>
		</div>
		<div class="home_divtmr">
			<div class="home_divtitle">
				<div class=" home_textdiv01 home_divtext">活跃会员</div>
				 <a href="<%=request.getContextPath() %>/home/hy?operType=1">
				<div class="home_textdiv02">更多</div>
				</a> </div>
			<div class="home_divtmrt">
				
				<div class="home_divtmrt01">
					
					<table>												
					<c:if test="${p3!=null}">					
					<c:forEach var="hy" items="${p3.data}" varStatus="status">					
						<c:if test="${status.index % 3 == 0}">
							<tr>
						</c:if>						
						<td>						
							<div class="home_divtmrt0101"> <a href="#"> <img weight="50" height="70" src="${drmFilePath}${hy.userImg}?w=50&h=70"/></a> <a hrfe="#">
								<p class="home_text04" style="text-align:center">${hy.userName}</p>
								</a> </div>
							
							<c:if test="${status.index%3 != 2 }">	
							<div class="home_divtmrt0102"></div>
							</c:if>
							
						</td>
						<c:if test="${status.index % 3 == 2}">
							</tr>
						</c:if>				
					</c:forEach>	
					</c:if>	
					</table>		
					
				</div>
				
			</div>
			
			<div class="home_divtmrm">
				<div class="home_divtitle" style="margin-top:6px;"> 
					<div class=" home_textdiv01 home_divtext">热门图片</div>
					 <a href="<%=request.getContextPath()%>/home/rmtp?counterPerPage=12&offset=0">
					<div class="home_textdiv02">更多</div>
					</a> </div>
				
				<script>
				jQuery.ajax( {    
				    url:'<%=request.getContextPath()%>/home/rmtp?type=1&counterPerPage=4&offset=0',    
				    type:'post',    
				    cache:false,    
				    dataType:'json',    
				    success:function(data) {    
				       totalCount = data.totalCount;
				       listRmtp(data);
				     },    
				     error : function() {      
				          //alert("请联系系统管理员！");    
				     }    
				}); 
				function listRmtp(data){
					var len = data.results.length;
					var results = data.results;
					var imgpath =data.imgpath;
					var html = '<table width="100%" align="center" border="0">';
					for(var idx=0;idx<len;idx++){
						
						if(idx%2 == 0){
							html += '<tr>';
						}
						html += '<td align="center">';
						html += '<div class="home_divtmrm0101" > <a href="#"> <img width="120" height="100" src="'+data.drmFilePath + results[idx]._id +  '"/></a> <a hrfe="#">';
						html += '<p class="home_text04" style="text-align:center">'+results[idx].title+'</p>';
						html += '</a>';
						html += '<p style="text-align:center"> 点击：'+results[idx].replies+'</p>';
						html += '</div></td>';	
						
						if(idx%2 == 1 || idx == (len -1)){
							html += '</tr><tr><td colspan="2">&nbsp;</td></tr>';
						}
					}
					html += '</table>';
					$("#rmtpId").html(html);
					
				}
				</script>
				
				<div id='rmtpId'>
				<div class="home_divtmrm01">
					<div class="home_divtmrm0101" > <a href="#"> <img src="${imgpath}/images\home_images\teacher01.jpg"/></a> <a hrfe="#">
						<p class="home_text04" style="text-align:center"></p>
						</a>
						<p style="text-align:center"> </p>
					</div>
					<div class="home_divtmrm0102"></div>
					<div class="home_divtmrm0101" > <a href="#"><img src="${imgpath}/images\home_images\teacher01.jpg"/></a> <a hrfe="#">
						<p class="home_text04" style="text-align:center"></p>
						</a>
						<p style="text-align:center"> </p>
					</div>
				</div>
				<div class="home_divtmrm01">
					<div class="home_divtmrm0101" > <a href="#"> <img src="${imgpath}/images\home_images\teacher01.jpg"/></a> <a hrfe="#">
						<p class="home_text04" style="text-align:center"></p>
						</a>
						<p style="text-align:center"></p>
					</div>
					<div class="home_divtmrm0102"></div>
					<div class="home_divtmrm0101" > <a href="#"> <img src="${imgpath}/images\home_images\teacher01.jpg"/></a> <a hrfe="#">
						<p class="home_text04" style="text-align:center"></p>
						</a>
						<p style="text-align:center"></p>
					</div>
				</div>
				</div>
				
				
				<div class="home_divtitle"> <a href="drm_home_qz.htm">
					<div class=" home_textdiv01 home_divtext">热门群组</div>
					</a> <a href="drm_home_qz.htm">
					<div class="home_textdiv02">更多</div>
					</a> </div>
				<div class="home_divtmrt">
					<div class="home_divtmrt01">
						<div class="home_divtmrt0101"> <a href="#"> <img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
						<div class="home_divtmrt0102"></div>
						<div class="home_divtmrt0101"> <a href="#"><img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
						<div class="home_divtmrt0102"></div>
						<div class="home_divtmrt0101"> <a href="#"><img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
					</div>
					<div class="home_divtmrt01">
						<div class="home_divtmrt0101"> <a href="#"><img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
						<div class="home_divtmrt0102"></div>
						<div class="home_divtmrt0101"> <a href="#"><img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
						<div class="home_divtmrt0102"></div>
						<div class="home_divtmrt0101"> <a href="#"> <img src="${imgpath}/images\home_images\home_people01.jpg"/></a> <a hrfe="#">
							<p class="home_text04" style="text-align:center">杨玉芳</p>
							</a> </div>
					</div>
				</div>
			</div>
			
		</div>
	</div>
</div>

<%@include   file="../footer.jsp" %>

</body>
</html>